home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’95 / NetFractal™ / Fractal 8 source / APane.cpp next >
Encoding:
Text File  |  1995-06-24  |  412 b   |  32 lines  |  [TEXT/MPCC]

  1. //    APane.cpp
  2.  
  3.  
  4. #include "APane.h"
  5. #include "ScreenTarget.h"
  6.  
  7. unsigned char byteData[] = {
  8.     0xff, 0xfd, 0xfb, 0xf9,
  9.     0xf7, 0xf5, 0xf3, 0xf1,
  10.     0xef, 0xed, 0xeb, 0xe9,
  11.     0xe7, 0xe5, 0xe3, 0xe1,
  12. };
  13.  
  14.  
  15. APane *
  16. APane::CreateAPaneStream(
  17.     LStream *stream)
  18. {
  19.     return new APane(stream);
  20. }
  21.  
  22.  
  23. void
  24. APane::DrawSelf()
  25. {
  26.     WindowPtr window;
  27.     GetPort(&window);
  28.     ScreenTarget foo(window);
  29.  
  30.     foo.PutData(byteData, 4, 4, 4, 0, 0);
  31. }
  32.